package com.atguigu.cloud.apis;

import com.atguigu.cloud.responce.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ Author：Aijinhui
 * @ Description：
 * @ Date：2024-06-03-17:23
 */
@FeignClient(value = "seata-account-service")
public interface AccountFeignApi {
    //给订单模块用，下订单之后需要扣减账户余额
    @PostMapping("/account/decrease")
    ResultData decrease(@RequestParam("userId") Long userId, @RequestParam("money") Long money);
}
